package com.sayimo.maker.mall.goods.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.mall.goods.dao.GoodsPhotoInterfaceDao;
import com.sayimo.maker.mall.goods.vo.GoodsPhoto;




@Repository(value="goodsPhotoDao")
public class GoodsPhotoInterfaceImplDao extends AbstractMybatisBaseDao<GoodsPhoto> implements GoodsPhotoInterfaceDao{
	
	public GoodsPhoto queryGoodsPhotoById(Integer id) throws DaoException{
		return this.mybatisInterfaceBaseDao.get("com.sayimo.maker.mall.goods.dao.GoodsPhotoInterfaceDao.selectByPrimaryKey", id);
	}

	public List<GoodsPhoto> selectGoodsPhotoByIds(Map paramMap) throws DaoException{
		return this.mybatisInterfaceBaseDao.query("com.sayimo.maker.mall.goods.dao.GoodsPhotoInterfaceDao.selectGoodsPhotoByIds", paramMap);
	}

	@Override
	public Integer insertGoodsPhoto(GoodsPhoto goodsPhoto) throws DaoException {
		// TODO Auto-generated method stub
		return this.mybatisInterfaceBaseDao.insert("com.sayimo.maker.mall.goods.dao.GoodsPhotoInterfaceDao.insertGoodsPhoto", goodsPhoto);
	}
}
